package com.ruoyi.APPMS.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.APPMS.domain.Partsell;
import com.ruoyi.APPMS.mapper.PartsellMapper;
import com.ruoyi.APPMS.service.IPartsellService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 部件销售Service业务层处理
 *
 * @author 谢雨琦
 * @date 2023-07-03
 */
@Service
public class PartsellServiceImpl extends ServiceImpl<PartsellMapper, Partsell> implements IPartsellService {
    @Autowired
    private PartsellMapper partsellMapper;

    @Override
    public List<Partsell> list(Partsell partsell) {
        return partsellMapper.list(partsell);
    }

    @Override
    public boolean edit(Partsell partsell) {
        return partsellMapper.edit(partsell) >0;
    }

    @Override
    public boolean edit2(Partsell partsell) {
        return partsellMapper.edit2(partsell) >0;
    }

    @Override
    public boolean add1(Partsell partsell) {
        return partsellMapper.add1(partsell)>0;
    }

    @Override
    public boolean add2(Partsell partsell) {
        return partsellMapper.add2(partsell)>0;
    }
    @Override
    public boolean add3(Partsell partsell) {
        return partsellMapper.add3(partsell)>0;
    }
}
